import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const dashboard: AppRouteModule = {
  path: '/energy',
  name: 'energy',
  component: LAYOUT,
  redirect: '/energy/index',
  meta: {
    orderNo: 39999,
    hideChildrenInMenu: true,
    icon: 'ion:fireball',
    title: t('routes.alarm.energy'),
  },
  children: [
    {
      path: 'index',
      name: 'EnergyPage',
      component: () => import('/@/views/energy/index.vue'),
      meta: {
        // affix: true,
        hideMenu: true,
        title: t('routes.alarm.energy'),
      },
    },
  ],
};
export default dashboard;
